add_library(curve_fitting_library STATIC
    rng.h
    solver_type.h
    curve_fitting_vertex.h
    curve_fitting_edge.h
    curve_fitting_edge.cpp
)
target_link_libraries(curve_fitting_library
    Eigen3::Eigen
    ${G2O_CORE_LIBRARY}
    ${G2O_STUFF_LIBRARY}
    ${CERES_LIBRARIES}
)
set_target_properties(curve_fitting_library PROPERTIES LINKER_LANGUAGE CXX)

add_executable (01_curve_fitting main.cpp)
target_link_libraries(01_curve_fitting curve_fitting_library)
